package day6

import (
	"fmt"
	"time"
)

func GetOff() {
	for i := 5; i > 0; i-- {
		fmt.Println("还有", i, "位乘客下车")
		time.Sleep(1 * time.Second)
	}
	fmt.Println("需要下车的乘客已全部下车")
}

func GetOn() {
	for i := 1; i <= 5; i++ {
		fmt.Println("第", i, "位乘客上车")
		time.Sleep(1 * time.Second)
	}
	fmt.Println("需要上车车的乘客已全部上车")

}
